﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebAppAuthAdmin.Code.Security
{
    public class AppSecurity
    {
        // Concatenado al id de operacion, indica el permiso para la misma
        public const string APP_VIEW_ID_ = "APP_VIEW_ID_";
        public const string APP_EDIT_ID_ = "APP_EDIT_ID_";
        public const string APP_CREATE = "APP_CREATE";
        public const string APP_DELETE = "APP_DELETE";

        public const string APP_CREATE_COMPANY = "APP_CREATE_COMPANY";
        public const string APP_VIEW_COMPANY_ID_ = "APP_VIEW_COMPANY_ID_"; // Permite ver una empresa en particular
        public const string APP_EDIT_COMPANY_ID_ = "APP_EDIT_COMPANY_ID_"; // Permite ver una empresa en particular
        public const string APP_DELETE_COMPANY = "APP_DELETE_COMPANY";  

        public const string APP_VIEW_ALL_USERS = "APP_VIEW_ALL_USERS"; // Permite ver a todos los usuarios
        public const string APP_VIEW_USERS_ID_ = "APP_VIEW_USERS_ID_"; // Permite ver usuarios de una aplicacion - concatena id
        public const string APP_USERS_SETPERMISSION_ = "APP_USERS_SETPERMISSION_"; // Permite ver usuarios de una aplicacion - concatena id        
        public const string APP_USERS_VIEWPERMISSION_ = "APP_USERS_VIEWPERMISSION_"; // Permite ver usuarios de una aplicacion - concatena id        
        public const string APP_USER_EDIT = "APP_USER_EDIT";
        public const string APP_USER_CREATE = "APP_USER_CREATE";
        public const string APP_USER_DELETE = "APP_USER_DELETE";
        public const string APP_USER_BLOCK = "APP_USER_BLOCK";
        public const string APP_CHANGE_PASSWORD = "APP_CHANGE_PASSWORD";
        public const string APP_CHANGE_MY_PASSWORD = "APP_CHANGE_MY_PASSWORD";
        public const string APP_SET_PASSWORD = "APP_SET_PASSWORD";   // La primera vez        

        public const string APP_ROLE_VIEW = "APP_ROLE_VIEW";
        public const string APP_ROLE_CREAR = "APP_ROLE_CREAR";
        public const string APP_ROLE_EDITAR = "APP_ROLE_EDITAR";
        public const string APP_ROLE_ELIMINAR = "APP_ROLE_ELIMINAR";

        public const string APP_OPERATION_VIEW = "APP_OPERATION_VIEW";
        public const string APP_OPERATION_CREAR = "APP_OPERATION_CREAR";
        public const string APP_OPERATION_EDITAR = "APP_OPERATION_EDITAR";
        public const string APP_OPERATION_ELIMINAR = "APP_OPERATION_ELIMINAR";
                
    }
}